import java.util.Scanner;

public class PrintU {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        StringBuilder s = new StringBuilder();
        StringBuilder a = new StringBuilder();
        for (int i = 0; i < n; i++)
            s.append("*");
        for (int i = 0; i < 2 * n; i++)
            a.append(".");
        for (int i = 1; i <= 4 * n - n; i++) {
            System.out.print(s);
            System.out.print(a);
            System.out.println(s);
        }
        for (int i = 1; i <= n - 1; i++) {
            for (int j = 0; j < i; j++) {
                System.out.print(".");
            }
            System.out.print(s);
            System.out.print(a.delete(0, 2));
            System.out.print(s);
            for (int j = 0; j < i; j++) {
                System.out.print(".");
            }
            System.out.println();
        }
        for (int i = 0; i < n; i++) {
            System.out.print(".");
        }
        System.out.print(s.append(s));
        for (int i = 0; i < n; i++) {
            System.out.print(".");
        }
    }
}
